import App from './App'
import store from "@/store/index.js"
import interceptor from "./utils/interceptor.js"
import request from "./utils/request.js"


// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
	store,
	...App
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif




/**
 * 封装全局弹窗组件
 * @param {title}
 */
uni.$showMsg = function(title = "数据加载失败", time = 1500) {
	uni.showToast({
		title: title,
		duration: time,
		icon: 'none'
	})
}

